package com.apollographql.apollo.internal;

/* access modifiers changed from: package-private */
public enum CallState {
    IDLE,
    ACTIVE,
    TERMINATED,
    CANCELED;

    /* access modifiers changed from: package-private */
    public static class IllegalStateMessage {
        private final CallState callState;

        private IllegalStateMessage(CallState callState2) {
            this.callState = callState2;
        }

        static IllegalStateMessage forCurrentState(CallState callState2) {
            return new IllegalStateMessage(callState2);
        }

        /* access modifiers changed from: package-private */
        public String expected(CallState... acceptableStates) {
            StringBuilder stringBuilder = new StringBuilder("Found: " + this.callState.name() + ", but expected [");
            String deliminator = "";
            for (CallState state : acceptableStates) {
                stringBuilder.append(deliminator);
                stringBuilder.append(state.name());
                deliminator = ", ";
            }
            stringBuilder.append("]");
            return stringBuilder.toString();
        }
    }
}
